Skip to content

Commit

Permalink
Se arreglo un bug en la edicion de las ordenes, ahora deberian normal…
Browse files Browse the repository at this point in the history
…izarce
  • Loading branch information
SantiMaceri committed Feb 20, 2019
1 parent 6cb04f4 commit 4db39ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function editAction($id)
'actual_user' => $this->getUser(),
'journal' => $journal,
'other' => $other,
'journal_id' => $journal->getId(),
'journal_id' => !is_null($journal) ? $journal->getId() : '',

));

Expand Down
2 changes: 1 addition & 1 deletion src/Celsius3/CoreBundle/Form/Type/OrderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'constraints' => new Valid(),
'journal' => $options['journal'],
'other' => $options['other'],
'journal_id' => $options['journal_id'],
'journal_id' => !is_null($options['journal_id']) ? $options['journal_id'] : '' ,
);
} else {
$materialOptions = array(
Expand Down

0 comments on commit 4db39ab

Please sign in to comment.