FSN#34495 api_notes &module=MLD parameter ondersteunen (effectief zelfs verplicht)

svn path=/Website/trunk/; revision=27376
This commit is contained in:
Jos Groot Lipman
2015-12-09 15:40:10 +00:00
parent 156ba14d62
commit f166768b35
2 changed files with 3 additions and 1 deletions

View File

@@ -21,5 +21,5 @@
<!-- #include file="./api2_rest.inc" -->
<!-- #include file="./model_notes.inc" -->
<%
api2_rest.process(model_notes);
api2_rest.process(new model_notes(getQParam("module", "").toUpperCase()));
%>

View File

@@ -102,6 +102,8 @@ function model_notes(module)
tabel.parent = "prj_scenario";
break;
}
default:
api2.error(500, "Missing module parameter");
}
this.table = tabel.naam;
this.primary = tabel.parent + "_note_key";