How to make linkedcustomfields plugin compatible with mantis 2.18

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
prati
Posts: 8
Joined: 17 Oct 2018, 14:10

How to make linkedcustomfields plugin compatible with mantis 2.18

Post by prati »

Hello forum!!

I have installed linkedcustomfields plugin into Mantis 2.18.0. But after pasting the code in plugin/ I am not getting install button activated.Please help me.. it has the unmet dependencies error for jquery. Please help me to make this plugin workable.


Thanks
Amin
Posts: 26
Joined: 08 Oct 2018, 15:42

Re: How to make linkedcustomfields plugin compatible with mantis 2.18

Post by Amin »

Hello, parti
You need to change the those lines

$this->version = "2.18.0";

$this->requires = array(
"MantisCore" => "2.18.0, <2.30.0",
);

Then create manualy using myphpadmin the table called mantis_plugin_linkedcustomfields_data_table with :

custom_filed_id
custom_field_value_order
custom_field_value
target_field_id
targed_filed_values

And then you will see the buttom linkcustom filed on manage directory.
:P :P
prati
Posts: 8
Joined: 17 Oct 2018, 14:10

Re: How to make linkedcustomfields plugin compatible with mantis 2.18

Post by prati »

Hello Amin,

I did the steps which you guided to through but still getting below error:

INTERNAL APPLICATION ERROR

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Please help me..
Amin
Posts: 26
Joined: 08 Oct 2018, 15:42

Re: How to make linkedcustomfields plugin compatible with mantis 2.18

Post by Amin »

Hello,

Have you created a table called mantis_plugin_linkedcustomfields_data in your data base ?
You need also to deleate all of this code from the plugin

/* public function schema()
{
return array(

array( 'Create Table', array( plugin_table( 'data' ), "
custom_field_id I NOTNULL,
custom_field_value_order I NOTNULL,
custom_field_value C(255) NOTNULL DEFAULT \" '' \",
target_field_id I NOTNULL,
target_field_values C(255) NOTNULL DEFAULT \" '' \"
", Array('mysql' => 'DEFAULT CHARSET=utf8', 'pgsql' => 'WITHOUT OIDS')
)
),
array( 'Alter Column',
array( plugin_table( 'data' ), " custom_field_value XL, target_field_values XL", array( 'UNIQUE' ) ))
);

After that you need to create manualy the table, by following the name and type value of columns like you see in the function above.
Post Reply