Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salesforce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
salesforce
Commits
23512e81
Commit
23512e81
authored
1 year ago
by
Sean Femouw
Committed by
Aaron Bauman
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3389025
by sean_fremouw: Null first parameter values are deprecated in strtotime()
parent
172f0ad9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
+1
-1
1 addition, 1 deletion
modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
modules/salesforce_pull/src/QueueHandler.php
+1
-1
1 addition, 1 deletion
modules/salesforce_pull/src/QueueHandler.php
with
2 additions
and
2 deletions
modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
+
1
−
1
View file @
23512e81
...
...
@@ -175,7 +175,7 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi
$pull_trigger_date
=
$sf_object
->
field
(
$mapping
->
getPullTriggerDate
());
$sf_record_updated
=
strtotime
(
$pull_trigger_date
);
$sf_record_updated
=
$pull_trigger_date
?
strtotime
(
$pull_trigger_date
)
:
0
;
$mapped_object
->
setDrupalEntity
(
$entity
)
...
...
This diff is collapsed.
Click to expand it.
modules/salesforce_pull/src/QueueHandler.php
+
1
−
1
View file @
23512e81
...
...
@@ -290,7 +290,7 @@ class QueueHandler {
if
(
$force_pull
||
$event
->
isEnqueueAllowed
())
{
$this
->
enqueueRecord
(
$mapping
,
$record
,
$force_pull
);
}
$record_time
=
strtotime
(
$record
->
field
(
$triggerField
));
$record_time
=
$record
->
field
(
$triggerField
)
?
strtotime
(
$record
->
field
(
$triggerField
))
:
0
;
if
(
$max_time
<
$record_time
)
{
$max_time
=
$record_time
;
$mapping
->
setLastPullTime
(
$max_time
);
...
...
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