Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/include-hidden'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabea David committed May 27, 2016
2 parents c211061 + ce7da80 commit 72608bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SimpleContactForm.module
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ EOD;

// return success - regardless whether a mail has been sent or not
$this->input->post->success = $this->successMessage;

// log whether a mail has been sent or not
if ($numSent) {
$logmessage = array(
Expand All @@ -635,8 +635,8 @@ EOD;
}

// edit page - save message
if ($this->pages->findOne('template=simple_contact_form_messages') instanceof Page && $this->saveMessages) {
$page = $this->pages->findOne('template=simple_contact_form_messages');
if ($this->pages->findOne('template=simple_contact_form_messages, include=all') instanceof Page && $this->saveMessages) {
$page = $this->pages->findOne('template=simple_contact_form_messages, include=all');
$newEntry = $page->{$this->repeaterName}->getNew();

foreach ($this->allFields as $inputfield) {
Expand Down Expand Up @@ -738,7 +738,7 @@ EOD;
// additional checks only if save messages feature is turned on
if ($spam === false && $this->saveMessages) {
// get all mail addresses marked as spam
$receivedMessages = $this->pages->findOne('template=simple_contact_form_messages')->{$this->repeaterName};
$receivedMessages = $this->pages->findOne('template=simple_contact_form_messages, include=all')->{$this->repeaterName};
$currentIp = $_SERVER['REMOTE_ADDR'];
$excludeIps = explode(',', $this->antiSpamExcludeIps);

Expand Down

0 comments on commit 72608bf

Please sign in to comment.