FSN#46947 BGT: toevoegen project geeft na opslaan 'Gegevens niet gevonden.'

svn path=/Website/branches/v2017.2/; revision=35744
This commit is contained in:
Erik Groener
2017-10-19 08:06:44 +00:00
parent e33a11709d
commit 4e87b3684b
2 changed files with 3 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ model_bgt_disc_params =
"record_name": "budgetdisciplineparam",
"table": "bgt_disc_params",
"primary": "bgt_disc_params_key",
"autfunction": "WEB_BGTMAN",
"autfunction": "WEB_BGTMGT",
"fields": {

View File

@@ -23,13 +23,7 @@ function model_bgt_discipline(disc_key, params)
this.REST_GET = generic_REST_GET(disc, // Let op: de originele _model
{ "GET": {
wheres: [ "ins_tab_discipline.ins_discipline_module = 'BGT'",
" ins_tab_discipline.ins_discipline_key IN"
+ " (SELECT ins_discipline_key"
+ " FROM fac_v_webgebruiker"
+ " WHERE prs_perslid_key = " + user_key
+ " AND (fac_gebruiker_prs_level_read<9 OR fac_gebruiker_alg_level_read<9)"
+ " )"
wheres: [ "ins_tab_discipline.ins_discipline_module = 'BGT'"
]
}
}
@@ -48,7 +42,7 @@ function _model_bgt_discipline()
this.audit = { "childtable": "bgt_disc_params" }, // Parameters voor fac_audit.
this.primary = "ins_discipline_key";
this.soft_delete = "ins_discipline_verwijder"; // ik wil er eigenlijk liever niet standaard op kunnen filteren
this.autfunction = "WEB_BGTMAN";
this.autfunction = "WEB_BGTMGT";
this.record_title = L("bgt_discipline");
this.records_title = L("bgt_discipline_m");