Skip to content

Commit

Permalink
Fixed #353
Browse files Browse the repository at this point in the history
  • Loading branch information
devin committed Oct 19, 2015
1 parent 61d6338 commit b97da1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/admin/forms/metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@
function give_single_forms_cmb2_metaboxes( array $meta_boxes ) {

$post_id = give_get_admin_post_id();
$price = ! empty( give_get_form_price( $post_id ) ) ? give_get_form_price( $post_id ) : esc_attr( give_format_amount( '1.00' ) );
$price = give_get_form_price( $post_id );
$goal = give_get_form_goal( $post_id );
$variable_pricing = give_has_variable_prices( $post_id );
$prices = give_get_variable_prices( $post_id );

//No empty prices - min. 1.00 for new forms
if ( empty( $price ) ) {
$price = esc_attr( give_format_amount( '1.00' ) );
}

// Start with an underscore to hide fields from custom fields list
$prefix = '_give_';

Expand Down

0 comments on commit b97da1a

Please sign in to comment.