Closed glennwilton closed 6 years ago
Hello,
can you make a pull request?
Thanks 👍
Sure, never done one, so always a first time for everything :-)
https://github.com/orlyapps/nova-belongsto-depend/commit/85e9a1e90c2b07c3a55c698508990d3f7eb923e9 should fix your problem. Can you try it with this version?
Just tried the latest version, CustomID problem fixed.
Hi
My Models have custom id fields, so any reference to field->id fails, I needed to make a few changes
NovaBelongsToDepend.php Line 86 Change to
$this->dependKey = $foreign->getKey();
FormField.vue Line 56 Change to
dependKey: dependsOnValue.value[dependsOnValue.field.modelKeyName]
Line 97 Change toformData.append(this.field.attribute, this.value[this.field.modelKeyName] || "");