Skip to content

Commit

Permalink
Merge pull request #30 from PathToLife/master
Browse files Browse the repository at this point in the history
added ref to OrderComment::COMMENT_FIELD_NAME in InstallData, adminhtml spelling fix
  • Loading branch information
boldsidney authored Jan 14, 2019
2 parents 80e40e4 + 23e7f00 commit c985ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Setup/InstallData.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Bold\OrderComment\Setup;

use Bold\OrderComment\Model\Data\OrderComment;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
Expand Down Expand Up @@ -50,13 +51,13 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface

$quoteInstaller->addAttribute(
'quote',
'bold_order_comment',
OrderComment::COMMENT_FIELD_NAME,
['type' => Table::TYPE_TEXT, 'length' => '64k', 'nullable' => true]
);

$salesInstaller->addAttribute(
'order',
'bold_order_comment',
OrderComment::COMMENT_FIELD_NAME,
['type' => Table::TYPE_TEXT, 'length' => '64k', 'nullable' => true, 'grid' => true]
);

Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<label>Order Comment</label>
<field id="max_length" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Maximum length in characters</label>
<comment>Leave emtpy for no limit</comment>
<comment>Leave empty for no limit</comment>
</field>
<field id="show_in_account" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Show comments in customer account</label>
Expand Down

0 comments on commit c985ed9

Please sign in to comment.