Correct the field name from res_owner to res_creator

In database has only the res_creator column.
This commit is contained in:
Tomasz Jakubowski 2018-09-25 02:03:37 +02:00 committed by GitHub
parent 1e98a89bbd
commit 8979e5efe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}