mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Filemanager: Fix change in ownership of sub-directories did not always update UI
This commit is contained in:
parent
8f1383b973
commit
b16ccfd3ef
@ -1264,6 +1264,7 @@ class filemanager_ui
|
||||
static $name2cmd = array('uid' => 'chown','gid' => 'chgrp','perms' => 'chmod');
|
||||
$cmd = array('EGroupware\\Api\\Vfs',$name2cmd[$name]);
|
||||
$value = $name == 'perms' ? static::perms2mode($content['perms']) : $content[$name];
|
||||
if(!$value) continue;
|
||||
if ($content['modify_subs'])
|
||||
{
|
||||
if ($name == 'perms')
|
||||
@ -1276,11 +1277,14 @@ class filemanager_ui
|
||||
$changed = Vfs::find($path,null,$cmd,array($value));
|
||||
}
|
||||
$ok = $failed = 0;
|
||||
foreach($changed as &$r)
|
||||
foreach($changed as $sub_path => &$r)
|
||||
{
|
||||
if ($r)
|
||||
{
|
||||
++$ok;
|
||||
// Changing owner does not change mtime. Clear subs on UI so they get reloaded
|
||||
if($sub_path == $path) continue;
|
||||
Api\Json\Response::get()->apply('egw.dataStoreUID',['filemanager::'.$sub_path,null]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user