diff --git a/ci4/app/Controllers/Test.php b/ci4/app/Controllers/Test.php index 9a5c3c05..345a47e9 100755 --- a/ci4/app/Controllers/Test.php +++ b/ci4/app/Controllers/Test.php @@ -12,7 +12,6 @@ use App\Models\Presupuestos\ImportadorModel; use App\Models\Presupuestos\PresupuestoModel; use App\Models\Usuarios\GroupModel; use App\Models\Catalogo\CatalogoLibroModel; -use App\Models\Catalogo\IdentificadorIsknModel; use App\Services\PresupuestoService; use CodeIgniter\Shield\Entities\User; @@ -32,22 +31,7 @@ class Test extends BaseController public function index() { - - - /*$modelCL = new CatalogoLibroModel(); - $modelISKN = new IdentificadorIsknModel(); - - // Obtener todos los registros sin iskn - $registros = $modelCL->where('iskn', null)->findAll(); - - $i = 0; - foreach ($registros as $registro) { - $iskn = $modelISKN->newIskn(); - - $modelCL->update($registro->id, ['iskn' => $iskn]); - - echo "[" . $i++ . "]Asignado ISKN {$iskn} a ID {$registro->id}
"; - }*/ + } diff --git a/ci4/app/Models/Catalogo/IdentificadorIsknModel.php b/ci4/app/Models/Catalogo/IdentificadorIsknModel.php index cec92df6..abe68ab3 100644 --- a/ci4/app/Models/Catalogo/IdentificadorIsknModel.php +++ b/ci4/app/Models/Catalogo/IdentificadorIsknModel.php @@ -19,7 +19,7 @@ class IdentificadorIsknModel extends Model /** * Crea un nuevo registro con un ISKN Ășnico y lo devuelve. */ - public function newIskn(string $contexto = 'libro'): string + public function newIskn(string $contexto = ''): string { $iskn = $this->generarIsknUnico($contexto); $this->insert(['iskn' => $iskn]);