Skip to main content
added 9 characters in body
Source Link
kb8
  • 467
  • 5
  • 13

Ok, I found a good solution to solve my problem.

Modules required

Steps

  • Enable Helper module;
  • Enable Devel module;
  • Enable the block Execute PHP;
  • Paste and execute this code in the block: FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal');
  • Edit display format for node where the field is being used;
  • Edit Views where the field is being used to fix the format settings (If necessary);

If you don't want use Devel and can use Drush:

  • Enable Helper module;

  • create a new file in root Drupal folder, i.e. name it: intToField.php

    <?php FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal'); ?>

  • launch the drush command: drush src intToField.php

  • Delete the file;

  • Edit display format for node where the field is being used;

  • Edit Views where the field is being used to fix the format settings (If necessary);

Ok, I found a good solution to solve my problem.

Modules required

Steps

  • Enable Helper module;
  • Enable Devel module;
  • Enable the block Execute PHP;
  • Paste and execute this code in the block: FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal');
  • Edit display format for node where the field is being used;
  • Edit Views where the field is being used to fix the format settings (If necessary);

If you don't want use Devel and can use Drush:

  • Enable Helper module;

  • create a new file in root Drupal folder, i.e. name it: intToField.php

    <?php FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal'); ?>

  • launch the drush command: drush src intToField.php

  • Delete the file;

  • Edit display format for node where the field is being used;

  • Edit Views where the field is being used to fix the format settings (If necessary);

Ok, I found a good solution to solve my problem.

Modules required

Steps

  • Enable Helper module;
  • Enable Devel module;
  • Enable the block Execute PHP;
  • Paste and execute this code in the block: FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal');
  • Edit display format for node where the field is being used;
  • Edit Views where the field is being used to fix the format settings (If necessary);

If you don't want use Devel and can use Drush:

  • Enable Helper module;

  • create a new file in root Drupal folder, i.e. name it: intToField.php

    <?php FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal'); ?>

  • launch the drush command: drush src intToField.php

  • Delete the file;

  • Edit display format for node where the field is being used;

  • Edit Views where the field is being used to fix the format settings (If necessary);

Source Link
kb8
  • 467
  • 5
  • 13

Ok, I found a good solution to solve my problem.

Modules required

Steps

  • Enable Helper module;
  • Enable Devel module;
  • Enable the block Execute PHP;
  • Paste and execute this code in the block: FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal');
  • Edit display format for node where the field is being used;
  • Edit Views where the field is being used to fix the format settings (If necessary);

If you don't want use Devel and can use Drush:

  • Enable Helper module;

  • create a new file in root Drupal folder, i.e. name it: intToField.php

    <?php FieldChangeHelper::changeType('field_myintegerfield', 'number_decimal'); ?>

  • launch the drush command: drush src intToField.php

  • Delete the file;

  • Edit display format for node where the field is being used;

  • Edit Views where the field is being used to fix the format settings (If necessary);