if self.lookup:
lookup_options = self.get_lookup_values()
if value not in lookup_options:
raise ValidationError(
_('Value is not one of the provided options.')
)
if self.lookup:
lookup_options = self.get_lookup_values()
if value and value not in lookup_options:
raise ValidationError(
_('Value is not one of the provided options.')
)
Looks like a bug. I'll write the view tests for each case and add a ticket for the 2.1 milestone or add a 2.0.2 milestone if it is to critical. Thanks for the finding this.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When i am back in town next week i'll update my docker instance and do some testing. Thanks for the fix!
> --
>
> ---
> You received this message because you are subscribed to a topic in the Google Groups "Mayan EDMS" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/mayan-edms/VUGRl4xX-1c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to mayan-edms+...@googlegroups.com.