Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion forms-bridge/addons/bigin/templates/companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Description',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/bigin/templates/contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Description',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/bigin/templates/deals.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Description',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/bigin/templates/meetings.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'date',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/brevo/templates/companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function ( $country ) {
array(
'name' => 'phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'website',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/brevo/templates/company-deals.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function ( $country ) {
array(
'name' => 'phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'website',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
array(
'name' => 'phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'note_private',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
array(
'name' => 'phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'address',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
array(
'name' => 'phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'note_private',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/dolibarr/templates/thirdparties.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
array(
'name' => 'phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function ( $country_code ) {
array(
'label' => __( 'Phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/financoop/templates/loan-requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function ( $country_code ) {
array(
'label' => __( 'Phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function ( $country_code ) {
array(
'label' => __( 'Phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{
"name": "phone",
"label": "Your phone",
"type": "text"
"type": "tel"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/holded/templates/appointments.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/holded/templates/company-contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/holded/templates/company-leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/holded/templates/contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/holded/templates/leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{
"name": "phone",
"label": "Your phone",
"type": "text"
"type": "tel"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/appointments.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
array(
'name' => 'phone',
'label' => __( 'Your phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'date',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/company-contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/company-quotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
),
array(
'label' => __( 'Address', 'forms-bridge' ),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/crm-company-leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function ( $country_code ) {
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
),
array(
'label' => __( 'Comments', 'forms-bridge' ),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/crm-leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
),
array(
'label' => __( 'Comments', 'forms-bridge' ),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/crm-team-leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
),
array(
'label' => __( 'Comments', 'forms-bridge' ),
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/helpdesk-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
array(
'name' => 'your-email',
'label' => __( 'Your email', 'forms-bridge' ),
'type' => 'text',
'type' => 'email',
'required' => true,
),
array(
Expand Down
4 changes: 2 additions & 2 deletions forms-bridge/addons/odoo/templates/job-applicants.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@
array(
'name' => 'your-email',
'label' => __( 'Your email', 'forms-bridge' ),
'type' => 'text',
'type' => 'email',
'required' => true,
),
array(
'name' => 'your-phone',
'label' => __( 'Your phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/odoo/templates/quotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
array(
'label' => __( 'Your phone', 'forms-bridge' ),
'name' => 'phone',
'type' => 'text',
'type' => 'tel',
'required' => true,
),
array(
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/zoho/templates/accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Title',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/zoho/templates/company-leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Title',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/zoho/templates/contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Description',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/zoho/templates/leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'Description',
Expand Down
2 changes: 1 addition & 1 deletion forms-bridge/addons/zoho/templates/meetings.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
array(
'name' => 'Phone',
'label' => __( 'Phone', 'forms-bridge' ),
'type' => 'text',
'type' => 'tel',
),
array(
'name' => 'date',
Expand Down
6 changes: 5 additions & 1 deletion forms-bridge/includes/jobs/date-fields-to-date.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ function forms_bridge_job_format_date_fields( $payload ) {
true
);

$date_format = $form_data['fields'][ $date_index ]['format'] ?? '';
if ( false !== $date_index ) {
$date_format = $form_data['fields'][ $date_index ]['format'];
} else {
$date_format = 'yyyy-mm-dd';
}

if ( strstr( $date_format, '-' ) ) {
$separator = '-';
Expand Down
Loading