mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
adapting resources install to changed categories class (cat_owner=0 instead -1)
This commit is contained in:
parent
958452ff95
commit
2805cc1904
@ -12,7 +12,7 @@
|
|||||||
$resources_table_prefix = 'egw_resources';
|
$resources_table_prefix = 'egw_resources';
|
||||||
|
|
||||||
// Add a general category for resources
|
// Add a general category for resources
|
||||||
$GLOBALS['egw_setup']->db->insert($GLOBALS['egw_setup']->cats_table,array('cat_parent' => 0, 'cat_owner' => -1,'cat_access' => 'public','cat_appname' => 'resources','cat_name' => 'General resources','cat_description' => 'This category has been added by setup','last_mod' => time()),false,__LINE__,__FILE__);
|
$GLOBALS['egw_setup']->db->insert($GLOBALS['egw_setup']->cats_table,array('cat_parent' => 0, 'cat_owner' => categories::GLOBAL_ACCOUNT,'cat_access' => 'public','cat_appname' => 'resources','cat_name' => 'General resources','cat_description' => 'This category has been added by setup','last_mod' => time()),false,__LINE__,__FILE__);
|
||||||
$cat_id = $GLOBALS['egw_setup']->db->get_last_insert_id($GLOBALS['egw_setup']->cats_table,'cat_id');
|
$cat_id = $GLOBALS['egw_setup']->db->get_last_insert_id($GLOBALS['egw_setup']->cats_table,'cat_id');
|
||||||
|
|
||||||
// Give default group all rights to this general cat
|
// Give default group all rights to this general cat
|
||||||
@ -26,4 +26,3 @@
|
|||||||
$res_id = $oProc->m_odb->get_last_insert_id($resources_table_prefix,'res_id');
|
$res_id = $oProc->m_odb->get_last_insert_id($resources_table_prefix,'res_id');
|
||||||
$oProc->query("INSERT INTO {$resources_table_prefix} (name,cat_id,bookable,picture_src,accessory_of) VALUES ( 'Fixed Beamer',$cat_id,0,'cat_src',$res_id)");
|
$oProc->query("INSERT INTO {$resources_table_prefix} (name,cat_id,bookable,picture_src,accessory_of) VALUES ( 'Fixed Beamer',$cat_id,0,'cat_src',$res_id)");
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user