Skip to content
Snippets Groups Projects
Commit 08c1c52f authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch 'cherry-pick-091464da' into '2021.1.0'

Merge branch 'sales_pn_1079936_zu_angebot_hinzufuegen_no_permission' into '2021.1'

See merge request xrm/basic!1007
parents 43f302ea 69253dbc
No related branches found
No related tags found
No related merge requests found
......@@ -3,16 +3,12 @@ import("system.result");
import("Offer_lib");
import("system.vars");
if(vars.get("$param.ShownInOfferMainView_param"))
{
var res;
res = OfferUtils.isEditable(vars.get("$param.OrderOfferInformations_param")["OfferStatus_param"])?
neon.COMPONENTSTATE_EDITABLE: neon.COMPONENTSTATE_DISABLED;
result.string(res);
result.string(
OfferUtils.isEditable(JSON.parse(
vars.get("$param.OrderOfferInformations_param")
)["OfferStatus_param"]) ?
neon.COMPONENTSTATE_EDITABLE: neon.COMPONENTSTATE_DISABLED
);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment