Skip to content

[BUG] After latest update, the QuikAdd.variables are not being sent to the template #1014

@merqrial

Description

@merqrial

Describe the bug
I am using QuickAdd.variables like,

QuickAdd.variables = { ...movie, TMDbLink:${TMDB_MOVIE_URL}${movie.id}, language: movie.original_language,

but all are empty, Not sure how to debug. I can only debug the template script part which seems to be filling in the object as expected

To Reproduce
Put in varibles values and try to read them in a .md template.

Expected behavior
Values added in QuickAdd.variables are available in template parsing.

Obsidian Debug Info (required for bug reports)
Please include the full Debug Info from Obsidian to help diagnose your environment:

  • Open the Command Palette (Ctrl/Cmd+P).
  • Run: Show debug info.
  • Click: Copy to clipboard.
  • Paste it below inside the code block.
SYSTEM INFO:
	Obsidian version: v1.10.6
	Installer version: v1.8.4
	Operating system: Windows 10 Home 10.0.19045
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: light
	Community theme: Minimal v8.1.0
	Snippets enabled: 4
	Restricted mode: off
	Plugins installed: 17
	Plugins enabled: 14
		1: Templater v2.16.2
		2: Tasks v7.22.0
		3: Natural Language Dates v0.6.2
		4: QuickAdd v2.9.0
		5: Tracker v1.17.0
		6: Periodic Notes v0.0.17
		7: Calendar v1.5.10
		8: Style Settings v1.0.9
		9: Dataview v0.5.68
		10: Auto Link Title v1.5.5
		11: Map View v6.0.3
		12: JSON/CSV Importer v0.38.4
		13: Lazy Plugin Loader v1.0.21
		14: Hider v1.5.1

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Obsidian version: mentioned above
  • QuickAdd version: mentioned above
  • Operating system: Win10
  • Debug info: No errors in the console
  • Other plugins enabled: mentioned above
  • Theme: [e.g. Default] (if applicable)

Console Logs
If applicable, open developer tools (Ctrl+Shift+I or Cmd+Option+I on Mac) and paste any relevant error messages.

Mobile (if applicable, complete the following information):

  • Device: Nothing phone 1
  • OS: Android
  • Obsidian version: mentioned above
  • QuickAdd version: mentioned above

Additional context
I used this script for loading movies from TMDB earlier in the day, updated plugin and then tried to add another movie name and it failed, so it does appear to be the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions