removes the checkbox for heimatadresse because it should not be changed by the user

This commit is contained in:
SimonGschnell
2024-02-13 14:25:07 +01:00
parent 66b843be1b
commit 409221434a
2 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -557,8 +557,8 @@ class Profil extends Auth_Controller
private function getAdressenInfo($pid){
$adresse_res = null;
if (
isSuccess($adresse_res = $this->AdresseModel->addSelect(["adresse_id","strasse", "tbl_adressentyp.bezeichnung as typ", "plz", "ort","zustelladresse","heimatadresse"])) &&
isSuccess($adresse_res = $this->AdresseModel->addSelect(["adresse_id","strasse", "tbl_adressentyp.bezeichnung as typ", "plz", "ort","zustelladresse"])) &&
isSuccess($adresse_res = $this->AdresseModel->addOrder("zustelladresse", "DESC")) &&
isSuccess($adresse_res = $this->AdresseModel->addJoin("tbl_adressentyp", "typ=adressentyp_kurzbz"))
) {
@@ -14,7 +14,7 @@ export default {
methods:{
updateValue: function(event,bind){
//? sets the value of a property to null when an empty string is entered to keep the isChanged function valid
if(bind ==="zustelladresse" || bind ==="heimatadresse"){
if(bind ==="zustelladresse" ){
this.data[bind] = event.target.checked;
}else{
this.data[bind] = event.target.value === "" ? null : event.target.value;
@@ -63,12 +63,7 @@ export default {
</div>
<div class="form-check mb-2">
<input class="form-check-input" type="checkbox" @change="updateValue($event,'heimatadresse')" :checked="data.heimatadresse" id="flexCheckDefault">
<label class="form-check-label" for="flexCheckDefault">
Heimatadresse
</label>
</div>
</div>