This commit is contained in:
Duidev Software House
2025-09-20 09:32:52 +07:00
parent 8e6070e745
commit e8d66dec74
5 changed files with 125 additions and 29 deletions
@@ -246,6 +246,7 @@ class TemplateController extends Controller
try {
$id = $request->id;
$tabel = $request->tabel;
$data = null;
$pesan = 'Unkown Error';
if ($tabel == 'Organisme'){
if ($id == 'new'){
@@ -312,7 +313,6 @@ class TemplateController extends Controller
} else if ($tabel == 'Parameter'){
$getdatalama = Organisms::where('kelompok', $request->kelompok)->first();
$category = $getdatalama->category ?? $request->kelompok;
if ($id == 'new'){
$ceksudah = Organisms::where('name', $request->name)->where('category', $category)->where('kelompok', $request->kelompok)->count();
if ($ceksudah == 0){