Fewo PDF Hinweise, Generator, Anhang Mail
This commit is contained in:
parent
a3bef8d1aa
commit
730832c8e1
31 changed files with 1786 additions and 147 deletions
|
|
@ -62,7 +62,7 @@ class DraftController extends Controller
|
|||
$i = 1;
|
||||
if(isset($data['draft_item'])){
|
||||
foreach ($data['draft_item'] as $draft_item_id => $draft_item){
|
||||
if($data['action'] == 'saveAllFromOld'){
|
||||
if($data['action'] === 'saveAllFromOld'){
|
||||
$di = $draft->draft_items()->create([]);
|
||||
}else{
|
||||
$di = DraftItem::findOrFail($draft_item_id);
|
||||
|
|
@ -82,7 +82,7 @@ class DraftController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
if($data['action'] == 'addItem'){
|
||||
if($data['action'] === 'addItem'){
|
||||
$draft->draft_items()->create(['pos' => $i]);
|
||||
}
|
||||
if(strpos($data['action'], 'up_') !== false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue