Skip to content

Commit

Permalink
yform 3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasKrais committed Jan 31, 2019
1 parent b028d6f commit 4c1bd22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions modules/70/1/output.php
Original file line number Diff line number Diff line change
Expand Up @@ -965,16 +965,15 @@ function recalc() {
php|validate_timer|Spamprotection|<input name="validate_timer" type="hidden" value="'. microtime(true) .'" />|
html||<br>* '. $tag_open .'d2u_immo_form_required'. $tag_close .'<br><br>
captcha|'. $tag_open .'d2u_immo_form_captcha'. $tag_close .'|'. $tag_open .'d2u_immo_form_validate_captcha'. $tag_close .'|'. rex_getUrl('', '', ['property_id' => $property->property_id]) .'
submit|submit|'. $tag_open .'d2u_immo_form_send'. $tag_close .'|no_db
validate|empty|name|'. $tag_open .'d2u_immo_form_validate_name'. $tag_close .'
validate|empty|phone|'. $tag_open .'d2u_immo_form_validate_phone'. $tag_close .'
validate|empty|email|'. $tag_open .'d2u_immo_form_validate_email'. $tag_close .'
validate|email|email|'. $tag_open .'d2u_immo_form_validate_email_false'. $tag_close .'
validate|type|email|email|'. $tag_open .'d2u_immo_form_validate_email_false'. $tag_close .'
validate|empty|privacy_policy_accepted|'. $tag_open .'d2u_immo_form_validate_privacy_policy'. $tag_close .'
validate|customfunction|validate_timer|d2u_addon_frontend_helper::yform_validate_timer|10|'. $tag_open .'d2u_immo_form_validate_spambots'. $tag_close .'|
validate|customfunction|validate_timer|d2u_addon_frontend_helper::yform_validate_timer|3|'. $tag_open .'d2u_immo_form_validate_spambots'. $tag_close .'|
action|tpl2email|d2u_immo_request|emaillabel|'. $property->contact->email;

Expand Down Expand Up @@ -1011,19 +1010,18 @@ function recalc() {
php|immo_contact_validate_timer|Spamprotection|<input name="immo_contact_validate_timer" type="hidden" value="'. microtime(true) .'" />|
html||<br>* '. $tag_open .'d2u_immo_form_required'. $tag_close .'<br><br>
captcha|'. $tag_open .'d2u_immo_form_captcha'. $tag_close .'|'. $tag_open .'d2u_immo_form_validate_captcha'. $tag_close .'|'. rex_getUrl('', '', ['property_id' => $property->property_id]) .'
html||<br>* '. $tag_open .'d2u_immo_recommendation_privacy_policy'. $tag_close .'<br><br>
submit|submit|'. $tag_open .'d2u_immo_form_send'. $tag_close .'|no_db
validate|empty|sender_name|'. $tag_open .'d2u_immo_recommendation_validate_sender_name'. $tag_close .'
validate|empty|sender_mail|'. $tag_open .'d2u_immo_recommendation_validate_sender_mail'. $tag_close .'
validate|email|sender_mail|'. $tag_open .'d2u_immo_recommendation_validate_sender_mail'. $tag_close .'
validate|type|sender_mail|email|'. $tag_open .'d2u_immo_recommendation_validate_sender_mail'. $tag_close .'
validate|empty|receipient_name|'. $tag_open .'d2u_immo_recommendation_validate_receipient_name'. $tag_close .'
validate|empty|receipient_mail|'. $tag_open .'d2u_immo_recommendation_validate_receipient_mail'. $tag_close .'
validate|email|receipient_mail|'. $tag_open .'d2u_immo_recommendation_validate_receipient_mail'. $tag_close .'
validate|type|receipient_mail|email|'. $tag_open .'d2u_immo_recommendation_validate_receipient_mail'. $tag_close .'
validate|empty|message|'. $tag_open .'d2u_immo_recommendation_validate_message'. $tag_close .'
validate|customfunction|immo_contact_validate_timer|d2u_addon_frontend_helper::yform_validate_timer|10|'. $tag_open .'d2u_immo_form_validate_spambots'. $tag_close .'|
validate|customfunction|immo_contact_validate_timer|d2u_addon_frontend_helper::yform_validate_timer|3|'. $tag_open .'d2u_immo_form_validate_spambots'. $tag_close .'|
action|callback|sendRecommendation';

Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ requires:
media_manager: '>=2.2'
sprog: '>=1.0.0'
url: '>=1.0.1'
yform: '>=2.0'
yform: '>=3.0'
yrewrite: '>=2.0.1'

0 comments on commit 4c1bd22

Please sign in to comment.