Commit 2f57b7d5 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_credential: Fix external validator to check login availability in ERP5JS

parent 206271c8
...@@ -17,7 +17,7 @@ if value: ...@@ -17,7 +17,7 @@ if value:
def getRealContext(): def getRealContext():
if not REQUEST: if not REQUEST:
return context 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) return portal.restrictedTraverse(object_path)
#Allow user to create a request with it's username #Allow user to create a request with it's username
......
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
<string>my_start_date</string> <string>my_start_date</string>
<string>my_stop_date</string> <string>my_stop_date</string>
<string>my_url_string</string> <string>my_url_string</string>
<string>your_object_path</string>
</list> </list>
</value> </value>
</item> </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