Merge pull request #49 from tompsonx/master

* Resources: correct the field name from res_owner to res_creator.
This commit is contained in:
Hadi Nategh 2018-09-25 11:40:22 +02:00 committed by GitHub
commit c96f4ff5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -320,7 +320,7 @@ class resources_bo
// we need an id to save pictures and make links...
if(!$resource['res_id'])
{
$resource['res_owner'] = $GLOBALS['egw_info']['user']['account_id'];
$resource['res_creator'] = $GLOBALS['egw_info']['user']['account_id'];
$resource['res_created'] = Api\DateTime::server2user(time(),'ts');
$resource['res_id'] = $this->so->save($resource);
}

View File

@ -181,7 +181,7 @@
<description value="Created by"/>
<hbox>
<menulist>
<menupopup type="select-account" id="res_owner" readonly="true"/>
<menupopup type="select-account" id="res_creator" readonly="true"/>
</menulist>
<date-time id="res_created" readonly="true" align="right"/>
</hbox>

View File

@ -117,7 +117,7 @@
<description value="Created by"/>
<hbox>
<menulist>
<menupopup type="select-account" id="res_owner" readonly="true"/>
<menupopup type="select-account" id="res_creator" readonly="true"/>
</menulist>
<date-time id="res_created" readonly="true" align="right"/>
</hbox>

View File

@ -31,7 +31,7 @@
<description value="Created by"/>
<hbox>
<menulist>
<menupopup type="select-account" id="res_owner" readonly="true"/>
<menupopup type="select-account" id="res_creator" readonly="true"/>
</menulist>
<date-time id="res_created" readonly="true" align="right"/>
</hbox>