Skip to content

Commit be8f8d9

Browse files
author
Carlos Garcia
committed
Solucionado bug al guardar datos: estaba detectando cambio de valor de clave primaria cuando no era realmente.
1 parent 0f7be5f commit be8f8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Lib/ExtendedController/PanelController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ protected function editAction()
240240
$this->views[$this->active]->processFormData($this->request, 'edit');
241241

242242
// has PK value been changed?
243-
$this->views[$this->active]->newCode = $this->views[$this->active]->model->primaryColumnValue();
243+
$this->views[$this->active]->newCode = (string)$this->views[$this->active]->model->primaryColumnValue();
244244
if ($code !== $this->views[$this->active]->newCode && $this->views[$this->active]->model->test()) {
245245
$pkColumn = $this->views[$this->active]->model->primaryColumn();
246246
$this->views[$this->active]->model->{$pkColumn} = $code;

0 commit comments

Comments
 (0)