Commit 180712ae authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_credential: Fix external validator to check login availability in ERP5JS

parent 7dab73cd
......@@ -17,7 +17,7 @@ if value:
def getRealContext():
if not REQUEST:
return context
object_path = REQUEST.get("object_path")
object_path = REQUEST.get("object_path") or REQUEST.get("field_your_object_path")
return portal.restrictedTraverse(object_path)
#Allow user to create a request with it's username
......
......@@ -123,6 +123,7 @@
<string>my_start_date</string>
<string>my_stop_date</string>
<string>my_url_string</string>
<string>your_object_path</string>
</list>
</value>
</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment