fix: deprecated initHighlighting (#36938)

* fix: remove read_only decorator from get_desktop_page
get_desktop_page leads to a call to check_completions which calls save and thus with the read_only decorator calls save on the read replica

* fix: Move write operation out of read only request

* fix: deprecated initHighlighting

Deprecated as of 10.6.0. initHighlighting() is deprecated.  Use highlightAll() instead.

---------

Co-authored-by: Apile Tyumre <apiletyumre@iridescentsun.com>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
Elnegren 2026-02-20 20:47:32 +01:00 committed by GitHub
parent ee007d839b
commit df78027f41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,7 +296,7 @@ $.extend(frappe, {
},
highlight_code_blocks: function () {
hljs.initHighlighting();
hljs.highlightAll();
},
bind_filters: function () {
// set in select