Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Daniel Lennartz
vtigercrm
Commits
21dddb9e
Commit
21dddb9e
authored
7 years ago
by
Satish
Browse files
Options
Downloads
Patches
Plain Diff
Fixes #599 - db error when trying to add new mail scanner.
parent
9d7f9e79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Settings/MailConverter/models/Record.php
+1
-1
1 addition, 1 deletion
modules/Settings/MailConverter/models/Record.php
modules/Settings/MailConverter/models/RuleRecord.php
+1
-1
1 addition, 1 deletion
modules/Settings/MailConverter/models/RuleRecord.php
with
2 additions
and
2 deletions
modules/Settings/MailConverter/models/Record.php
+
1
−
1
View file @
21dddb9e
...
...
@@ -328,7 +328,7 @@ class Settings_MailConverter_Record_Model extends Settings_Vtiger_Record_Model {
*/
public
static
function
getInstanceById
(
$recordId
)
{
$db
=
PearDatabase
::
getInstance
();
$result
=
$db
->
pquery
(
'SELECT * FROM vtiger_mailscanner WHERE scannerid = '
,
array
(
$recordId
));
$result
=
$db
->
pquery
(
'SELECT * FROM vtiger_mailscanner WHERE scannerid =
?
'
,
array
(
$recordId
));
if
(
$db
->
num_rows
(
$result
))
{
$recordModel
=
self
::
getCleanInstance
();
$recordModel
->
setData
(
$db
->
query_result_rowdata
(
$result
));
...
...
This diff is collapsed.
Click to expand it.
modules/Settings/MailConverter/models/RuleRecord.php
+
1
−
1
View file @
21dddb9e
...
...
@@ -180,7 +180,7 @@ class Settings_MailConverter_RuleRecord_Model extends Settings_Vtiger_Record_Mod
*/
public
static
function
getInstanceById
(
$recordId
)
{
$db
=
PearDatabase
::
getInstance
();
$result
=
$db
->
pquery
(
'SELECT * FROM vtiger_mailscanner_rules WHERE ruleid = '
,
array
(
$recordId
));
$result
=
$db
->
pquery
(
'SELECT * FROM vtiger_mailscanner_rules WHERE ruleid =
?
'
,
array
(
$recordId
));
if
(
$db
->
num_rows
(
$result
))
{
$recordModel
=
new
self
();
$recordModel
->
setData
(
$db
->
query_result_rowdata
(
$result
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment