Skip to content

Settings: undef $custom_fields['ip_invoice_custom'] in settings page (ip-1.6.2-beta3 1st install) #1163

@sudwebdesign

Description

@sudwebdesign

Expected Behavior

Set the App

Current Behavior

Only installed (without data) and go to the settings page
Impossible to save anything and navigate (Only return back with navigator <-)

Screenshot

Screenshot 2024-12-29 at 22-56-55 InvoicePlane-162b3-no-menu-on-settings

Possible Solution

Where is defined $custom_fields['ip_invoice_custom'] ?

Steps to Reproduce

  1. Install and login
  2. go to index.php/settings

Context (Environment)

New install without data

Possible Implementation (Hard fix)

In application/modules/email_templates/views/template-tags-invoices.php line 48

            <?php foreach ($custom_fields['ip_invoice_custom'] as $custom) { ?>

Add if(isset())

            <?php if(isset($custom_fields['ip_invoice_custom'])) foreach ($custom_fields['ip_invoice_custom'] as $custom) { ?>

Failure Logs

See source (Ctrl+u)
you found an errors like: https://pastebin.com/TvDrhskr

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