What is missing in my custom field vardef?

Hello. I need to add an integer field to currencies. I created the file custom/Extension/modules/Currencies/Ext/Vardefs/c_primary_key_c.php

It contains the following:

<?php
$dictionary['Currency']['fields']['c_primary_key_c']['name'] = 'c_primary_key_c';
$dictionary['Currency']['fields']['c_primary_key_c']['id'] = 'c_primary_key_c';
$dictionary['Currency']['fields']['c_primary_key_c']['type'] = 'Integer';
$dictionary['Currency']['fields']['c_primary_key_c']['dbType'] = 'integer';
$dictionary['Currency']['fields']['c_primary_key_c']['source'] = 'custom_fields';
$dictionary['Currency']['fields']['c_primary_key_c']['len'] = 10;
$dictionary['Currency']['fields']['c_primary_key_c']['size'] = 10;
$dictionary['Currency']['fields']['c_primary_key_c']['unified_search'] = false;

What am I missing, as this is not detected when I do Quick Repair?
Parents Reply
  • Yes, no luck. This is how I tried:

    $dictionary['Currency']['fields']['c_primary_key_c']['name'] = 'c_primary_key_c';
    $dictionary['Currency']['fields']['c_primary_key_c']['vname'] = 'Dimensions key';
    $dictionary['Currency']['fields']['c_primary_key_c']['id'] = 'c_primary_key_c';
    $dictionary['Currency']['fields']['c_primary_key_c']['type'] = 'int';
    $dictionary['Currency']['fields']['c_primary_key_c']['dbType'] = 'int';
    $dictionary['Currency']['fields']['c_primary_key_c']['source'] = 'custom_fields';
    $dictionary['Currency']['fields']['c_primary_key_c']['len'] = 10;
    $dictionary['Currency']['fields']['c_primary_key_c']['size'] = 10;
    $dictionary['Currency']['fields']['c_primary_key_c']['unified_search'] = false;

Children