I set the "minimal space" variable of some fields in RENDER SETTINGS, save, and everything works fine.
But when I go back to updated the PDF fields settings, all "minimal spaces" reset to default value 1.

Comments

velpan’s picture

apply this patch:
file: views_pdf_plugin_row_fields.inc
line: 266

find:

      $form['formats'][$field]['render']['minimal_space'] = array(
        '#type' => 'textfield',
        '#title' => t('Minimal Space'),
        '#description' => t('Specify here the minimal space, which is needed on the page, that the content is placed on the page.'),
        '#default_value' => isset($this->options['formats'][$field]['render']['swap_on_new_page']) ? $this->options['formats'][$field]['render']['swap_on_new_page'] : 1,
      );

replace with:

     $form['formats'][$field]['render']['minimal_space'] = array(
        '#type' => 'textfield',
        '#title' => t('Minimal Space'),
        '#description' => t('Specify here the minimal space, which is needed on the page, that the content is placed on the page.'),
        '#default_value' => isset($this->options['formats'][$field]['render']['minimal_space']) ? $this->options['formats'][$field]['render']['minimal_space'] : 1,
      );
Simon Georges’s picture

Status: Active » Fixed

Committed and push to both 6.x-1.x and 7.x-1.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.