mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix changing owner or allowed by context menu
This commit is contained in:
parent
1c4b473d6f
commit
a82580211e
@ -132,16 +132,21 @@ class importexport_definitions_ui
|
||||
$action = $content['nm']['action'];
|
||||
if($content['nm']['action'] == 'allowed')
|
||||
{
|
||||
$content['allowed'] = $content['allowed_private'] ? null : ($content['all_users'] ? 'all' : implode(',',$content['allowed']));
|
||||
$content['allowed'] = $content['allowed_popup']['allowed_private'] == 'true' ? null : (
|
||||
$content['allowed_popup']['all_users']=='true' ? 'all' : implode(',',$content['allowed_popup']['allowed'])
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$content['owner'] = $content['owner_popup']['owner'];
|
||||
}
|
||||
if(is_array($content[$content['nm']['action']]))
|
||||
{
|
||||
$content[$content['nm']['action']] = implode(',',$content[$content['nm']['action']]);
|
||||
}
|
||||
$content['nm']['action'] .= '_' . $content[$content['nm']['action']];
|
||||
$content['nm']['action'] .= '_' . $content[$action];
|
||||
unset($content[$action]);
|
||||
unset($content['all_users']);
|
||||
unset($content['allowed_private']);
|
||||
unset($content['allowed_popup']);
|
||||
}
|
||||
if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'],
|
||||
$success,$failed,$action_msg,'index',$msg))
|
||||
@ -298,7 +303,7 @@ class importexport_definitions_ui
|
||||
*/
|
||||
function action($action,$selected,$use_all,&$success,&$failed,&$action_msg,$session_name,&$msg)
|
||||
{
|
||||
//echo __METHOD__."('$action', ".array2string($selected).', '.array2string($use_all).",,, '$session_name')";
|
||||
//error_log( __METHOD__."('$action', ".array2string($selected).', '.array2string($use_all).",,, '$session_name')");
|
||||
if ($use_all)
|
||||
{
|
||||
// get the whole selection
|
||||
|
@ -73,11 +73,9 @@
|
||||
<description value="Change owner" class="promptheader"/>
|
||||
<vbox class="action_popup-content">
|
||||
<description value="Select owner"/>
|
||||
<menulist>
|
||||
<menupopup type="select-account" class="action_popup-content" id="owner" options="None,accounts"/>
|
||||
</menulist>
|
||||
<listbox type="select-account" id="owner" options="None,accounts"/>
|
||||
<hbox>
|
||||
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
|
||||
<button id="save_owner" label="Save" onclick="nm_submit_popup(this); return false;"/>
|
||||
<buttononly label="Cancel" onclick="nm_hide_popup(this,'owner_popup');"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
@ -88,9 +86,9 @@
|
||||
<description value="Select groups"/>
|
||||
<checkbox label="%s Just me" id="allowed_private"/>
|
||||
<checkbox label="%s All users" id="all_users"/>
|
||||
<listbox type="select-account" id="allowed" rows="5" options="groups"/>
|
||||
<listbox type="select-account" id="allowed" rows="5" account_type="groups"/>
|
||||
<hbox>
|
||||
<button label="Save" onclick="nm_submit_popup(this); return false;" image="save" background_image="1"/>
|
||||
<button id="save_allowed" label="Save" onclick="nm_submit_popup(this); return false;" image="save" background_image="1"/>
|
||||
<buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');" image="cancel" background_image="1"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
Loading…
Reference in New Issue
Block a user