Fixed not saving baufreigabe when no permission
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
foreach($terminations as $term): ?>
|
||||
|
||||
<?php if($bcount > 0): ?>
|
||||
<tr id="termination-<?=$term->id?>-top-header" class="hidden">
|
||||
<tr id="termination-<?=$term->id?>-top-header" class="hidden" data-last-save="<?=$term->edit?>">
|
||||
<th>Anschluss</th>
|
||||
<th>Tiefbau</th>
|
||||
<th>Patch-/Kabeldaten</th>
|
||||
@@ -590,6 +590,10 @@ function togglePipework(id) {
|
||||
}
|
||||
|
||||
function validateWorkflowItem(id) {
|
||||
// disable saving if timestamp changed
|
||||
|
||||
|
||||
|
||||
var required_fields = {
|
||||
pop_id: "int",
|
||||
schrank: "string",
|
||||
@@ -688,8 +692,8 @@ function validateWorkflowItem(id) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var export_uid = "";
|
||||
var export_progress = 0;
|
||||
var downloadUrl;
|
||||
|
||||
@@ -306,7 +306,7 @@ class LineworkController extends mfBaseController {
|
||||
|
||||
//var_dump($r->get());exit;
|
||||
|
||||
if($this->me->is(["Admin", "netowner","pipeplanner", "lineplanner"])) {
|
||||
if($r->isset("linework_enabled") && $this->me->is(["Admin", "pipeplanner", "lineplanner"])) {
|
||||
if($r->linework_enabled == 1 && $termination->linework_enabled != 1) {
|
||||
$termination->linework_enabled = 1;
|
||||
$termination->linework_enabled_date = date('U');
|
||||
|
||||
Reference in New Issue
Block a user