[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15833] booking, custom fields: allow use from other
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [15833] booking, custom fields: allow use from other apps |
Date: |
Sun, 16 Oct 2016 15:28:34 +0000 (UTC) |
Revision: 15833
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15833
Author: sigurdne
Date: 2016-10-16 15:28:33 +0000 (Sun, 16 Oct 2016)
Log Message:
-----------
booking, custom fields: allow use from other apps
Modified Paths:
--------------
trunk/booking/inc/class.custom_fields.inc.php
Modified: trunk/booking/inc/class.custom_fields.inc.php
===================================================================
--- trunk/booking/inc/class.custom_fields.inc.php 2016-10-16 15:27:39 UTC
(rev 15832)
+++ trunk/booking/inc/class.custom_fields.inc.php 2016-10-16 15:28:33 UTC
(rev 15833)
@@ -46,7 +46,7 @@
*
* @return void
*/
- public function __construct( $appname = null )
+ public function __construct( $appname = 'booking' )
{
parent::__construct($appname);
}
@@ -58,7 +58,7 @@
*/
public function get_fields( $location )
{
- $appname = 'booking';
+ $appname = $this->_appname;
return parent::find($appname, $location, 0, '', 'ASC',
'attrib_sort', true, true);
}
@@ -70,7 +70,8 @@
*/
public function organize_fields( $location, $fields = array() )
{
- $field_groups = $this->get_field_groups('booking',
$location, $fields);
+ $appname = $this->_appname;
+ $field_groups = $this->get_field_groups($appname,
$location, $fields);
$i = -1;
$attributes = array();
$_dummy = array(array());
@@ -119,7 +120,7 @@
*/
public function get_organized_fields( $location )
{
- $appname = 'booking';
+ $appname = $this->_appname;
$fields = parent::find($appname, $location, 0, '',
'ASC', 'attrib_sort', true, true);
return $this->get_field_groups($appname, $location,
$fields);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15833] booking, custom fields: allow use from other apps,
sigurdne <=