mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
Take nextmatch / favorite values into account, not just what was set on first load.
This commit is contained in:
parent
31908a5032
commit
fc3eca62f0
@ -496,11 +496,18 @@ app.classes.infolog = AppJS.extend(
|
|||||||
|
|
||||||
// It's important that all these keys are here, they override the link
|
// It's important that all these keys are here, they override the link
|
||||||
// registry.
|
// registry.
|
||||||
|
var action_id = nm_value.action_id ? nm_value.action_id : (_action_id != '0' ? _action_id : "") || "";
|
||||||
|
if(typeof action_id == "object" && typeof action_id.length == "undefined")
|
||||||
|
{
|
||||||
|
// Need a real array here
|
||||||
|
action_id = jQuery.map(action_id,function(val) {return val;});
|
||||||
|
}
|
||||||
var extras = {
|
var extras = {
|
||||||
type: _type || nm_value.filter || "",
|
type: _type || nm_value.filter || "",
|
||||||
cat_id: nm_value.cat_id || "",
|
cat_id: nm_value.cat_id || "",
|
||||||
action: _action || "",
|
action: nm_value.action || _action || "",
|
||||||
action_id: _action_id != '0' ? _action_id : "" || ""
|
// egw_link can handle arrays, but server is expecting CSV
|
||||||
|
action_id: typeof action_id.join != "undefined" ? action_id.join(',') : action_id
|
||||||
};
|
};
|
||||||
egw.open('','infolog','add',extras);
|
egw.open('','infolog','add',extras);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user