- first name of author is only required, if name type is personal

This commit is contained in:
Arno Kaimbacher 2021-06-11 14:26:40 +02:00
parent 28a38da865
commit 840bdffd2d
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@
</td>
<td>
<input v-bind:name="heading+'['+index+'][first_name]'" class="form-control" placeholder="[FIRST NAME]"
v-model="item.first_name" v-bind:readonly="item.status==1" v-validate="'required'"
v-model="item.first_name" v-bind:readonly="item.status==1" v-validate="item.name_type == 'Personal' ? 'required' : ''"
data-vv-scope="step-1" />
</td>
<td>