|
|
@@ -1803,7 +1803,10 @@ SQL_FUN;
|
|
|
$args['unitType'] = V::get('unitType', '', $_GET, 'word');
|
|
|
Response::sendTryCatchJson(array($this, 'updateProjektyOfertaAjax'), $args);
|
|
|
}
|
|
|
- public function updateProjektyOfertaAjax($idProject, $idType, $unitType) {
|
|
|
+ public function updateProjektyOfertaAjax($args) {
|
|
|
+ $idProject = V::get('idProject', 0, $args, 'int');
|
|
|
+ $idType = V::get('idType', 0, $args, 'int');
|
|
|
+ $unitType = V::get('unitType', '', $args, 'word');
|
|
|
if (empty($idProject) || $idProject <= 0) throw new Exception("Wrong param idProject");
|
|
|
if (empty($idType) || $idType <= 0) throw new Exception("Wrong param idType");
|
|
|
if (empty($unitType) || !in_array($unitType, array('zasob', 'robocizna'))) throw new Exception("Wrong param unitType");
|