Defect #18605

Updated by Jean-Philippe Lang about 3 years ago

logger.info (instead of logger.info?) can trigger an error

Line 185 :
<pre><code class="ruby">logger.info "time entry could not be updated: #{time_entry.errors.full_messages}" if logger && logger.info
</code></pre> &lt;/code&gt;&lt;pre&gt;

replace by :
<pre><code class="ruby">logger.info "time entry could not be updated: #{time_entry.errors.full_messages}" if logger && logger.info?
</code></pre> &lt;/code&gt;&lt;pre&gt;

Back