I
I
IG512017-08-09 11:55:49
1C-Bitrix
IG51, 2017-08-09 11:55:49

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

2 answer(s)
N
Nikita Ermilichev, 2017-08-09
@Masas

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

A
Alexey Emelyanov, 2017-08-09
@babarun

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 question

Ask a Question

731 491 924 answers to any question