Skip to content

Commit

Permalink
Merge branch 'dev' into dev-296
Browse files Browse the repository at this point in the history
  • Loading branch information
vickyrolanda committed Jul 8, 2024
2 parents ee89525 + 4f5ddf6 commit 7e02a52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/Http/Controllers/Admin/Wilayah/DesaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ public function update(RegionRequest $request, $id)
$input = $request->all();
$desa = Region::desa()->find($id);

if ($desa->nama_desa != $input['region_name']) {
if ($desa->nama_desa_baru) {
$input['new_region_name'] = $input['region_name'];

unset($input['region_name']);
} else {
if ($desa->nama_desa != $input['region_name']) {
$input['new_region_name'] = $input['region_name'];
}
}
unset($input['region_name']);

if ($desa->update($input)) {
return redirect('desa')->with('success', 'Data berhasil diubah');
Expand Down
2 changes: 2 additions & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Di rilis v2401.0.0 berisi perbaikan yang diminta Komunitas Open Desa.

#### Perbaikan Bug

1. [#301](https://github.com/OpenSID/pantau/issues/301) Cek tarik gagal tarik data.

#### Penyesuaian Teknis

1. [#290](https://github.com/OpenSID/pantau/issues/290) Perbaikan gagal nambah desa baru pada pantau.

0 comments on commit 7e02a52

Please sign in to comment.