Skip to content

Logic hooks not working on new records #20

@cumanacr

Description

@cumanacr

Issue

Logic hooks checking new records using:

if (!isset(self::$fetchedRow[$bean->id])) {

Are no longer working, it seems something changed on base SuiteCRM

Expected Behavior

Logic hook not firing on new records, it seems that is working properly on existing records somehow

Actual Behavior

Only existing records code is firing on the logic hooks

Possible Fix

Change isset for empty check

Steps to Reproduce

Context

SuiteCRM 7.11.15 and onwards

Your Environment

  • SuiteCRM Version used:
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
  • Environment name and version (e.g. MySQL, PHP 7):
  • Operating System and version (e.g Ubuntu 16.04):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions