added new features
This commit is contained in:
@@ -1078,6 +1078,21 @@ class ConstructionConsentController extends mfBaseController {
|
||||
|
||||
}
|
||||
|
||||
protected function prioritizeAction() {
|
||||
$consent_id = $this->request->consent_id;
|
||||
$checked = $this->request->checked;
|
||||
|
||||
$consent = new ConstructionConsent($consent_id);
|
||||
if(!$consent->id) {
|
||||
$this->returnJson(["status" => "error"]);
|
||||
}
|
||||
|
||||
$consent->update(["prioritize" => $checked]);
|
||||
$consent->save();
|
||||
|
||||
$this->returnJson(["status" => "OK"]);
|
||||
}
|
||||
|
||||
protected function importConstructionConsentOwnersAction() {
|
||||
$projectId = $this->request->project_id;
|
||||
$importData = json_decode(file_get_contents('php://input'), true);
|
||||
|
||||
Reference in New Issue
Block a user