Answer the question
In order to leave comments, you need to log in
How to restore the property id of an infoblock element on the 1C-BITRIX website?
Hello
, I deleted one property of the infoblock element that had an id (let's say 1), then created such a property, naturally it was assigned a different id (let's say 2). I corrected all the used id in the code, but unfortunately the display of the data did not return to its original form.
I climbed into the database and found that PROPERTY_1 is registered there:
INSERT INTO `b_user_option` VALUES
while PROPERTY_2 was registered only in the same place as the rest of the properties (naturally, PROPERTY_1 is already missing there)
how can I make property 2 work like property 1 , that is, some kind of crutch without manual editing of the database?
PS: one way is clear, to climb into the database and edit the handles, but integrity can be violated.
Answer the question
In order to leave comments, you need to log in
In Bitrix, it is better not to go into the database. And what prevents you from accessing the property not by ID, but by its code?
If you specify the property type and tell in more detail about the data display (which did not return to its original form), it will be easier to understand and understand the problem
Type of saint? If the usual (not plural and not a list), then raise a copy on your virtual machine and boldly
...to the database and edit handles
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question