Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Oct 4, 2018
1 parent 40adcdb commit 0aaebf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Api/NetSuiteApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public function getLeadFields()
$fields = [];
foreach ($keys as $key=>$type) {
if (in_array($type, self::ALLOWED_FIELDS_TYPE) && !in_array($key, self::SKIPPED_FIELDS)) {
$fields[0][$key] = [
$fields[$key] = [
'type' => 'string',
'label' => $key,
];
if (in_array($key, self::REQUIRED_FIELDS)) {
$fields[0][$key]['required'] = true;
$fields[$key]['required'] = true;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions Integration/NetSuiteIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ public function getAvailableLeadFields($settings = [])
public function amendLeadDataBeforePush(&$mappedData)
{
if (!empty($mappedData)) {
//vtiger requires assigned_user_id so default to authenticated user
}
}

Expand All @@ -171,11 +170,11 @@ public function appendToForm(&$builder, $data, $formArea)
'choice',
[
'choices' => [
'contacts' => 'mautic.vtiger.object.contact',
'contacts' => 'mautic.netsuite.object.contact',
],
'expanded' => true,
'multiple' => true,
'label' => 'mautic.vtiger.form.objects_to_pull_from',
'label' => 'mautic.netsuite.form.objects_to_pull_from',
'label_attr' => ['class' => ''],
'empty_value' => false,
'required' => false,
Expand Down
2 changes: 2 additions & 0 deletions Translations/en_US/messages.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mautic.netsuite.form.email="E-mail"
mautic.netsuite.form.password="Password"
mautic.netsuite.form.account.id="Account ID"
mautic.netsuite.form.objects_to_pull_from="Choose what NetSuite Objects to pull data from"
mautic.netsuite.object.contact="Contacts"

0 comments on commit 0aaebf5

Please sign in to comment.