File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 8787- [X] Company Cost Report
8888- [X] Mini Accounting untuk Mencatat Pengeluaran Perusahaan untuk Gaji
8989- [ ] PPH21
90+ - [ ] Change address default listener to doctrine listener to avoid double listener
9091- [ ] Perubahan Tax Group dan Risk Ratio
9192- [ ] Prevent Remove Mutation When Job History is Exist
9293- [ ] Prevent Remove Placement When Job History is Exist
Original file line number Diff line number Diff line change 77use KejawenLab \Application \SemartHris \Component \Address \Model \Addressable ;
88use KejawenLab \Application \SemartHris \Component \Address \Model \AddressInterface ;
99use KejawenLab \Application \SemartHris \Util \StringUtil ;
10+ use KejawenLab \Application \SemartHris \Util \UuidUtil ;
1011
1112/**
1213 * @author Muhamad Surya Iksanudin <[email protected] > @@ -23,7 +24,9 @@ public function unsetDefaultExcept(AddressInterface $address): void
2324 $ queryBuilder ->from ($ this ->getAddressClass (), 'o ' );
2425 $ queryBuilder ->update ();
2526 $ queryBuilder ->set ('o.defaultAddress ' , $ queryBuilder ->expr ()->literal (false ));
26- $ queryBuilder ->andWhere ($ queryBuilder ->expr ()->neq ('o.id ' , $ queryBuilder ->expr ()->literal ($ address ->getId ())));
27+ if ($ address ->getId () && UuidUtil::isValid ($ address ->getId ())) {
28+ $ queryBuilder ->andWhere ($ queryBuilder ->expr ()->neq ('o.id ' , $ queryBuilder ->expr ()->literal ($ address ->getId ())));
29+ }
2730
2831 $ queryBuilder ->getQuery ()->execute ();
2932 }
You can’t perform that action at this time.
0 commit comments