mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
reading the custom fields and types in the constructor, otherwise save_repository would delete them
This commit is contained in:
parent
253c46bb9a
commit
c730c82502
@ -44,6 +44,7 @@
|
|||||||
* @var $types2 array with userdefiened types e.g. type of infolog
|
* @var $types2 array with userdefiened types e.g. type of infolog
|
||||||
*/
|
*/
|
||||||
var $types2 = array();
|
var $types2 = array();
|
||||||
|
var $content_types,$fields;
|
||||||
|
|
||||||
var $public_functions = array
|
var $public_functions = array
|
||||||
(
|
(
|
||||||
@ -53,7 +54,12 @@
|
|||||||
function customfields($appname='')
|
function customfields($appname='')
|
||||||
{
|
{
|
||||||
// $this->tmpl =& CreateObject('etemplate.etemplate');
|
// $this->tmpl =& CreateObject('etemplate.etemplate');
|
||||||
$this->config =& CreateObject('phpgwapi.config',$this->appname);
|
$this->config =& CreateObject('phpgwapi.config',$this->appname=$appname);
|
||||||
|
if ($appname)
|
||||||
|
{
|
||||||
|
$this->fields = $this->get_customfields();
|
||||||
|
$this->content_types = $this->get_content_types();
|
||||||
|
}
|
||||||
// if($this->tmpl->read($this->appname.'.admin.types')) {$this->manage_content_types = true; echo 'tt';}
|
// if($this->tmpl->read($this->appname.'.admin.types')) {$this->manage_content_types = true; echo 'tt';}
|
||||||
$GLOBALS['egw']->translation->add_app('infolog'); // til we move the translations
|
$GLOBALS['egw']->translation->add_app('infolog'); // til we move the translations
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user