diff --git a/app/Http/Requests/SinergiProgramRequest.php b/app/Http/Requests/SinergiProgramRequest.php index 748bb8564..15b6e832a 100644 --- a/app/Http/Requests/SinergiProgramRequest.php +++ b/app/Http/Requests/SinergiProgramRequest.php @@ -52,11 +52,13 @@ public function authorize() */ public function rules() { + $gambarRule = $this->id ? 'nullable|' : 'required|'; + return [ - 'nama' => 'required', - 'url' => 'required', - 'gambar' => 'file|mimes:jpg,jpeg,png|max:2048|valid_file', - 'status' => 'required', + 'nama' => 'required|string|max:100', + 'url' => 'required|url', + 'gambar' => $gambarRule . 'image|mimes:jpg,jpeg,png|max:2048|valid_file', + 'status' => 'required|integer', ]; } } diff --git a/catatan_rilis.md b/catatan_rilis.md index 1af8ecfba..d562f1ea5 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -6,17 +6,18 @@ Di rilis v2308.0.1 berisi perbaikan yang diminta Komunitas OpenDK. 1. [#758](https://github.com/OpenSID/OpenDK/issues/758) Perbaikan angka pada data statistik web. 2. [#759](https://github.com/OpenSID/OpenDK/issues/759) Perbaikan tampilan detail penduduk. -3. [#764](https://github.com/OpenSID/OpenDK/issues/764) Perbaikan validasi modul media sosial. +3. [#764](https://github.com/OpenSID/OpenDK/issues/764) Perbaikan validasi modul admin media sosial. 4. [#746](https://github.com/OpenSID/OpenDK/issues/746) Perbaikan tampilan pesan sudah dan belum dibaca. 5. [#755](https://github.com/OpenSID/OpenDK/issues/755) Perbaikan slider contoh data awal. 6. [#757](https://github.com/OpenSID/OpenDK/issues/757) Perbaikan tombol pada kolom aksi halaman regulasi. -7. [#753](https://github.com/OpenSID/OpenDK/issues/753) Perbaikan validasi tambah/ubah pada modul dokumen. -8. [#747](https://github.com/OpenSID/OpenDK/issues/747) Perbaikan breadcrumb pada halaman admin regulasi. -9. [#748](https://github.com/OpenSID/OpenDK/issues/748) Perbaikan breadcrumb pada halaman admin potensi. -10. [#749](https://github.com/OpenSID/OpenDK/issues/749) Perbaikan breadcrumb pada halaman admin event. -11. [#750](https://github.com/OpenSID/OpenDK/issues/750) Perbaikan breadcrumb pada halaman admin artikel. -12. [#751](https://github.com/OpenSID/OpenDK/issues/751) Perbaikan breadcrumb pada halaman admin FAQ. +7. [#753](https://github.com/OpenSID/OpenDK/issues/753) Perbaikan validasi modul admin dokumen. +8. [#747](https://github.com/OpenSID/OpenDK/issues/747) Perbaikan breadcrumb modul admin regulasi. +9. [#748](https://github.com/OpenSID/OpenDK/issues/748) Perbaikan breadcrumb modul admin potensi. +10. [#749](https://github.com/OpenSID/OpenDK/issues/749) Perbaikan breadcrumb modul admin event. +11. [#750](https://github.com/OpenSID/OpenDK/issues/750) Perbaikan breadcrumb modul admin artikel. +12. [#751](https://github.com/OpenSID/OpenDK/issues/751) Perbaikan breadcrumb modul admin FAQ. 13. [#754](https://github.com/OpenSID/OpenDK/issues/754) Perbaikan notifikasi saat akses modul info sistem. +14. [#763](https://github.com/OpenSID/OpenDK/issues/763) Perbaikan validasi modul admin sinergi program. #### Teknis 1. [#12](https://github.com/OpenSID/wiki-keamanan/issues/12) Perbaikan keamanan modul bantuan.