baumrock / RockMigrations

The Ultimate Automation and Deployment-Tool for ProcessWire
MIT License
35 stars 10 forks source link

Different behaviour installing FieldtypePageTitleLanguage and FieldtypeTextLanguage fields #69

Open ivangretsky opened 2 days ago

ivangretsky commented 2 days ago

Good day @BernhardBaumrock !

Thanks for your work with this module. Will always write this line)

I am using Rock Migrations to initially setup a multilingual site. I am running this code to convert title field to its language version:

$rm->createField('title', [
    "label" => "Title",
    "type" => "FieldtypePageTitleLanguage",
]);

I have previously installed LanguageSupport module.

But I am getting a missing dependencies error:

Fatal Error:    Uncaught ProcessWire\WireException: Module FieldtypePageTitleLanguage requires: LanguageSupportFields, FieldtypeTextLanguage Unable to install required module - FieldtypeTextLanguage.

This is not so much of a deal. But this error doesn't happen if I install FieldtypeTextLanguage field, as it auto-installs dependencies. And this one doesn't. Looks like an inconsistency.

BernhardBaumrock commented 2 days ago

Hi @ivangretsky thx for your report. Do you have a suggested fix?