Forum Replies Created
-
AuthorPosts
-
naurojrMemberOn my tests, if you do
'min' => '0'with a single quote on the zero instead of'min' => 0without it, you get the value saved as it was a string, outside the array. Why? I can’t explain but worked for me.
naurojrMemberHi Steve,
Regarding saving the data, everything is work perfectly. I only found a minor bug.
When you have required fields, that are not filled and hit submit.
The page shows the success message and the error messages all at the same time.See screenshot attached.
Attachments:
You must be logged in to view attached files.
naurojrMemberIt works like a charm 🙂 I will make some additional tests and let you know if something breaks, but it looks like everything will work. Thank you very much for your help.
naurojrMemberThank you Steve. Do you have any estimate on when that would be working? No pressure, just want to plan accordingly.
By the way, great work on Piklist improvements.
Best regards,
Nauro Rezende Jr.
naurojrMemberPlease ignore this questions.
I’ve figured out that the problem was on the custom template for the fields group.
Just a reminder to always check the documentation before you update 🙂
naurojrMemberThis reply has been marked as private.
naurojrMemberIt didn’t work. Now I have this error on the log: [Mon Jul 17 22:56:49.566414 2017] [:error] [pid 19745] [client 108.241.61.30:40578] WordPress database error Table ‘snapshot_orderdesigndpt.wp_post_relationships’ doesn’t exist for query SELECT post_id, has_post_id FROM wp_post_relationships /* From [orderdesigndpt.staging.wpengine.com/wp-admin/admin-ajax.php] in [/nas/content/staging/orderdesigndpt/wp-content/plugins/piklist/parts/updates/0.9.9.php:159] */ made by do_action(‘wp_ajax_piklist_update_0_9_9’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Piklist_Update_0_9_9->ajax, referer: http://orderdesigndpt.staging.wpengine.com/wp-admin/admin.php?page=piklist_update_0_9_9
naurojrMemberthis is line 14:
$porder_id = str_pad($wpdb->get_var(“SELECT sysid FROM $table_name WHERE object_id = “.$post->ID),5,0,STR_PAD_LEFT);and below you have the entire script. Note that the script was working prior to the update.
<?php
/*
Title: Purchase Order Number
Post Type: purchaseorder
Collapse: false
Locked: true
Context: side
Order: 1
*/
?><?php
$table_name = $wpdb->prefix . ‘so_sysref’;
$porder_id = str_pad($wpdb->get_var(“SELECT sysid FROM $table_name WHERE object_id = “.$post->ID),5,0,STR_PAD_LEFT);
?>
<h1 style=”text-align:center;”><?php echo $porder_id; ?></h1>
naurojrMemberSame thing here!
-
AuthorPosts